package com.kizuki.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CalInfo {

    @Min(1)
    @NotNull
    Integer var1;

    @Min(1)
    @NotNull
    Integer var2;

    public int getResult(){
        return var1 * var2;
    }

}
